package 第六章;

public class Simulator {
   public void playSound(Animal animal){
        System.out.println("播放声音："+animal.getAnimalName()+"类的声音");
       animal.cry();
    }

}
